package com.chenglai.seckill.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author rxh
 */
@ApiModel(value = "t_cl_seckill_user")
@Table(name = "t_cl_seckill_user")
public class SeckillUser implements Serializable {


    /**
     * 主键
     */
    @Id
    @Column(name = "su_id", updatable = false)
    @ApiModelProperty(value = "主键")
    private Integer suId;

    /**
     * 秒杀活动id
     */
    @Column(name = "seckill_id")
    @ApiModelProperty(value = "秒杀活动ID")
    private Integer seckillId;

    /**
     * 用户
     */
    @Column(name = "user_id")
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    /**
     * 用户
     */
    @Column(name = "goods_id")
    @ApiModelProperty(value = "商品ID")
    private Integer goodsId;


    public Integer getSuId() {
        return suId;
    }

    public void setSuId(Integer suId) {
        this.suId = suId;
    }


    public Integer getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(Integer seckillId) {
        this.seckillId = seckillId;
    }


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }
}
